/*
 *  cstring.h
 *  string
 *  this header file defines dynamically sized string variables 
 *
 *  Created by nobles0ul on 12/09/11.
 *  Copyright 2011 JIIT. All rights reserved.
 *
 */


class CString
{
	private:
	
	int len;
	char *str;
	
	public:
	CString(char *p="sample");
	int substr(char *p);   // to find substring
	void concat(char *p); // to concatenate 2 string
	int stringCompare(char *p); // to compare p with str of object
	void stringCpy(char *p); // to copy p to str of object
	int stringLen(void); // to find length of string
	int chrIndex(char c);// to find index of character c in str
	void chgSize(int); // to change the size
 	~CString();
	
};	
	
